<%@ page language="java" pageEncoding="UTF-8"%>
<%@include file="/global/global-head.jsp" %>
<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>吉车惠后台管理系统</title>
	<%@include file="/global/global-other.jsp" %>
<script type="text/javascript">
	var $bn_oilStaion_worker_list = new Object();
	var $bn_oilStaion_worker_list_Datagrid;
	var $bn_oilStaion_worker_list_toolbar = [{
		text:'<i class="fa fa-search " aria-hidden="true"></i>查询',
		handler:function(){
			$bn_oilStaion_worker_list.reload();
		}
	}
	];
	$(function(){
		$bn_oilStaion_worker_list_Datagrid = $('#bn_oilStaionDatagrid').datagrid({
			filterBtnIconCls:'icon-filter',
			queryParams: {
				filter_EQ_delete_status: 0,
				filter_EQ_oilcard_status: 1
			},
			pageSize : 20,
			remoteFilter:true
		});
		$bn_oilStaion_worker_list_Datagrid.datagrid('enableFilter', [
			{field:'oilcardNo',type:'text'},
			{
				field:'oilcardStatus',
				type:'combobox',
				options:{
					valueField: 'code',
					textField: 'name',
					url:'${ctx}/tcode/all/method?method=getCacheOilcardStatus'
				},
				op:['equal']
			},
			{field:'createBy',type:'label'},
			{field:'updateBy',type:'label'}


		]);

	});

	$(function() {
		submitForm = function($dialog,$menusmap){
			var row = $bn_oilStaion_worker_list_Datagrid.datagrid('getSelected');
			if(row==null){
				$.messager.alert("提示",errMsg("请选择一行数据！"),"error");
			}
			var oilcardNo = row.oilcardNo;
			var oilcardId = row.oilcardId;
			$menusmap.setcardNo(oilcardNo,oilcardId);
			$dialog.close();
		};
	})

	$bn_oilStaion_worker_list.test=function(a){

	}

	$bn_oilStaion_worker_list.reload = function(){
		$("#bn_oilStaionDatagrid").datagrid('reload');
	};

	var viewDialog = null;


	function show(row){
		alert(111);
		window.close();
	}

</script>
	</head>
<body>
<div class="easyui-layout" data-options="fit:true">
	<div data-options="region:'center',border:false">
<table id="bn_oilStaionDatagrid"  style="width:100%;height: 100%"
	   data-options="border:false,rownumbers:true,
	   autoRowHeight:false,
	   singleSelect:true,
	   pagination:true,sortName:'createAt',
	   sortOrder:'desc',
	   toolbar:$bn_oilStaion_worker_list_toolbar,rowStyler: function(index,row){return {style:'height:30px'};},url:'${ctx}/bn/oilcard/search?_m=load',method:'post'">
	<thead>
	<tr>
		<th data-options="field:'oilcardNo',width:120,align:'center'">油卡编号</th>
		<th data-options="field:'oilcardStatus',width:120,align:'center',formatter:function(value,row,index){return row.oilcardStatusName;}">油卡状态</th>
		<th data-options="field:'createBy',width:80,align:'center'">添加人</th>
		<th data-options="field:'updateBy',width:80,align:'center'">修改人</th>
	</tr>
	</thead>
</table>
</div>
	</div>
</body>
</html>